<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWechatConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_config', function (Blueprint $table) {
            $table->increments('id');
            $table->string('app_id')->comment('Appid');
            $table->string('secret')->comment('secret');
            $table->string('mch_id')->comment('商户id');
            $table->string('mch_key', 32)->comment('商户支付秘钥');
            $table->string('ca_cert')->comment('ca证书');
            $table->string('apiclient_key')->comment('应用key');
            $table->string('apiclient_cert')->comment('应用证书');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_config');
    }
}
